//
//  SEGImageChooseViewModel.h
//  Commom
//
//  Created by 梁学彰 on 2020/6/4.
//

#import <Foundation/Foundation.h>
#if __has_include(<Commom/CommomHeader.h>)
#import <Commom/CommomHeader.h>
#else
#import "CommomHeader.h"
#endif

NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSUInteger, SEGEnumImageChooseViewType) {
    SEGEnumImageChooseViewType_THREE = 3, /*一行三个item*/
};
#define kImageChooseViewHeight 44     // ImageChooseView的高度
extern NSString * const SEGImageChooseViewCellIndetifier;
@interface SEGImageChooseViewModel : NSObject
@property (nonatomic, copy) NSString *title; // 注释
@property (nonatomic, copy) NSString *desc; // <#注释#>
@property (nonatomic, strong)NSArray<NSString*> *imageData;
@property (nonatomic, copy) NSString *maxChoose; // <#注释#>
@property (nonatomic, copy) NSString *lineMax; // <#注释#>
@property (nonatomic, assign) CGFloat widgetWidth;//控件宽度
@property (nonatomic, assign) CGFloat widgetHeight;//控件高度
@property (nonatomic, strong)id businessData;//控件业务数据载体

-(instancetype)init;
@end

@interface SEGImageChooseViewLayout : NSObject
@property (nonatomic, assign) CGSize itemSize;
@property (nonatomic, assign,readonly) CGFloat totalHeight;//控件总高度
@property (nonatomic, assign,readonly) SEGEnumImageChooseViewType type;//控件类型
@property (nonatomic, strong,readonly)SEGImageChooseViewModel *data;
- (instancetype)initWithData:(SEGImageChooseViewModel *)data type:(SEGEnumImageChooseViewType)type;
-(void)segImageChooseViewLayout;

@property (nonatomic, assign) CGFloat titleLabelHeight;//titleLabel 高度
@property (nonatomic, strong) SEGTextLayout *titleLabelTextLayout;//titleLabel 富文本布局

@property (nonatomic, assign) CGFloat descLabelHeight;//descLabel 高度
@property (nonatomic, strong) SEGTextLayout *descLabelTextLayout;//descLabel 富文本布局
@end

NS_ASSUME_NONNULL_END
